package GUI;

import java.awt.*;
import javax.swing.*;

/**
 * This class creates instance of EstimationStageGui	
 * to display when needed 	
 * @author Elad
 *
 */
public class EstimationStageGui extends JPanel{
	
	static final long serialVersionUID = 1L;
	private JButton canButton;
	private JButton subButton;
	private JLabel lblInfoSystem;
	private JLabel lblReqChange;
	private JLabel lblProfit;
	private JLabel lblCons;
	private JLabel lblHaz;
	private JLabel lblDur;
	JTextArea InfoSystem;
	JTextArea ReqChange;
	JTextArea Profit; 
	private JTextArea Cons;
	private JTextArea Haz;
	private JTextArea Dur;
	
/**
 * the constructor
 */
	public EstimationStageGui(){
		super();
		InfoSystem  =  new JTextArea();
		ReqChange  = new JTextArea();
		Profit = new JTextArea();
		Cons = new JTextArea();
		Haz = new JTextArea();
		Dur = new JTextArea();
		subButton = new JButton("submit");
		canButton = new JButton("cancel");
		
		initiate();
	}
	/**
	 * This method initializes EstimationStageGui	
	 */
	public void initiate(){
		JLabel lblEstStage = new JLabel("Estimation Stage");
		lblEstStage.setForeground(Color.BLUE);
		lblEstStage.setFont(new Font("Arial Black", Font.BOLD, 17));
		lblEstStage.setBounds(162, 31, 247, 50);
		add(lblEstStage);
		
		subButton.setFont(new Font("Arial", Font.PLAIN, 12));
		subButton.setBounds(336, 507, 122, 40);
		add(subButton);
		
		canButton.setFont(new Font("Arial", Font.PLAIN, 12));
		canButton.setBounds(51, 507, 122, 40);
		add(canButton);
		
		lblInfoSystem = new JLabel("Information System:");
		lblInfoSystem.setFont(new Font("Arial", Font.BOLD, 12));
		lblInfoSystem.setBounds(67, 100, 114, 20);
		add(lblInfoSystem);
		
		InfoSystem.setBounds(191, 92, 218, 28);
		add(InfoSystem);
		
		lblReqChange = new JLabel("Required Change:");
		lblReqChange.setFont(new Font("Arial", Font.BOLD, 12));
		lblReqChange.setBounds(67, 147, 114, 20);
		add(lblReqChange);
		
		ReqChange.setBounds(191, 131, 284, 59);
		add(ReqChange);
		
		lblProfit = new JLabel("Profit:");
		lblProfit.setFont(new Font("Arial", Font.BOLD, 12));
		lblProfit.setBounds(67, 231, 114, 20);
		add(lblProfit);
		
		Profit.setBounds(191, 201, 284, 59);
		add(Profit);
		
		lblCons = new JLabel("Constraints:");
		lblCons.setFont(new Font("Arial", Font.BOLD, 12));
		lblCons.setBounds(67, 294, 114, 20);
		add(lblCons);
		
		Cons.setBounds(191, 271, 284, 59);
		add(Cons);
		
		lblHaz = new JLabel("Hazards:");
		lblHaz.setFont(new Font("Arial", Font.BOLD, 12));
		lblHaz.setBounds(67, 375, 114, 20);
		add(lblHaz);
		
		Haz.setBounds(191, 352, 284, 59);
		add(Haz);
		
		lblDur = new JLabel("duration Estimation:");
		lblDur.setFont(new Font("Arial", Font.BOLD, 12));
		lblDur.setBounds(67, 451, 114, 20);
		add(lblDur);
		
		Dur.setBounds(191, 432, 284, 59);
		add(Dur);
		
		setLayout(null);
		setSize(new Dimension(500, 571));	
	}
	/**
	 * 
	 * @return JTextArea with the information system
	 */
	public JTextArea getTextArea_InfoSystem(){
		return InfoSystem;
	}
	/**
	 * 
	 * @return JTextArea with the required change
	 */
	public JTextArea getTextArea_ReqChange(){
		return ReqChange;
	}
	/**
	 * 
	 * @return JTextArea with the profit
	 */
	public JTextArea getTextArea_Profit(){
		return Profit;
	}
	/**
	 * 
	 * @return JTextArea with the constrains
	 */
	public JTextArea getTextArea_Cons(){
		return Cons;
	}
	/**
	 * 
	 * @returnJTextArea with the hazards
	 */
	public JTextArea getTextArea_Haz(){
		return Haz;
	}
	/**
	 * 
	 * @return JTextArea with the estimated duration
	 */
	public JTextArea getTextArea_Dur(){
		return Dur;
	}
	/**
	 * 
	 * @return the submit button
	 */
	public JButton getSubButt(){
		return subButton;
	}
	/**
	 * 
	 * @return the cancel button
	 */
	public JButton getCanButt(){
		return canButton;
	}
}
